package com.gaohe.dcp.mapper;

import java.util.List;
import com.gaohe.dcp.domain.DcpScheduling;

/**
 * 排班记录Mapper接口
 *
 * @author ruoyi
 * @date 2025-04-23
 */
public interface DcpSchedulingMapper
{
    /**
     * 查询排班记录
     *
     * @param schedulingId 排班记录主键
     * @return 排班记录
     */
    public DcpScheduling selectDcpSchedulingBySchedulingId(Long schedulingId);

    /**
     * 查询排班记录列表
     *
     * @param dcpScheduling 排班记录
     * @return 排班记录集合
     */
    public List<DcpScheduling> selectDcpSchedulingList(DcpScheduling dcpScheduling);

    /**
     * 新增排班记录
     *
     * @param dcpScheduling 排班记录
     * @return 结果
     */
    public int insertDcpScheduling(DcpScheduling dcpScheduling);

    /**
     * 修改排班记录
     *
     * @param dcpScheduling 排班记录
     * @return 结果
     */
    public int updateDcpScheduling(DcpScheduling dcpScheduling);

    /**
     * 删除排班记录
     *
     * @param schedulingId 排班记录主键
     * @return 结果
     */
    public int deleteDcpSchedulingBySchedulingId(Long schedulingId);

    /**
     * 批量删除排班记录
     *
     * @param schedulingIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDcpSchedulingBySchedulingIds(Long[] schedulingIds);

    boolean checkUserInDept(Long userId, Long deptId);

}
